-- GENERATED SPELL FOR [Scion of Quetz'lun] --


function spell0_28477(pUnit, Event) --@Lightning Breath,n/a--
pUnit:FullCastSpellOnTarget(38193,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28477', 584, 1)
end

function spell1_28477(pUnit, Event) --@Torment,n/a--
pUnit:FullCastSpellOnTarget(54526,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28477', 7000, 1)
end

function Sorts_28477(pUnit, Event)
local choix_sorts_28477 = math.random(0, 1)
if choix_sorts_28477 == 0 then
pUnit:RegisterEvent('spell0_28477', 1, 1)
end
if choix_sorts_28477 == 1 then
pUnit:RegisterEvent('spell1_28477', 1, 1)
end
end

function mob28477_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28477', math.random(1500, 3000), 1)
end

function mob28477_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28477_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28477_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28477, 1, 'mob28477_Action')
RegisterUnitEvent(28477, 2, 'mob28477_Leave')
RegisterUnitEvent(28477, 3, 'mob28477_Kill')
RegisterUnitEvent(28477, 4, 'mob28477_Die')
